/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmRectification extends BasicModel<PmRectification> {
  projectno?: string; // 工程编号
  name?: string; // 工程名称
  createtime?: string; // 创建时间
  changeno?: string; // 变更编号
  billno?: string; // 整改图片
  rectificationno?: string; // 整改编号
  rectificationcontent?: string; // 整改内容
  rectificationmeasures?: string; // 整改措施
  rectificationresult?: string; // 整改结果
  rectificationpic?: string; // 完成图片
  rectificationdate?: string; // 完成时间
  checkresult?: string; // 验收结果
  checkopinion?: string; // 验收意见
  checkdate?: string; // 验收时间
  acceptor?: string; // 发起人
  acceptorno?: string; // 发起人编号
  modular?: string; // 整改节点
  endtime?: string; // 整改期限
  procode?: string; // 来源ID
  iseffective?: string; // iseffective
  billno2?: string; // billno2
  billno3?: string; // billno3
}

export const pmRectificationList = (params?: PmRectification | any) =>
  defHttp.get<PmRectification>({ url: adminPath + '/proj/zg/pmRectification/list', params });

export const pmRectificationListData = (params?: PmRectification | any) =>
  defHttp.post<Page<PmRectification>>({
    url: adminPath + '/proj/zg/pmRectification/listData',
    params,
  });

export const pmRectificationForm = (params?: PmRectification | any) =>
  defHttp.get<PmRectification>({ url: adminPath + '/proj/zg/pmRectification/form', params });

export const pmRectificationSave = (params?: any, data?: PmRectification | any) =>
  defHttp.postJson<PmRectification>({
    url: adminPath + '/proj/zg/pmRectification/save',
    params,
    data,
  });

export const pmRectificationDelete = (params?: PmRectification | any) =>
  defHttp.get<PmRectification>({ url: adminPath + '/proj/zg/pmRectification/delete', params });

export const pmRectificationResult = (params?: any, data?: PmRectification | any) =>
  defHttp.postJson<PmRectification>({
    url: adminPath + '/proj/zg/pmRectification/updateResult',
    params,
    data,
  });

export const pmRectificationCheck = (params?: any, data?: PmRectification | any) =>
  defHttp.postJson<PmRectification>({
    url: adminPath + '/proj/zg/pmRectification/updateCheck',
    params,
    data,
  });
